import request from '@/utils/request'

// 查询通知公告列表
export function listMessage(query) {
    return request({
        url: '/customer/message/page',
        method: 'get',
        params: query
    })
}

// 查询通知公告详细
export function getMessage(id) {
    return request({
        url: '/customer/message/detail/' + id,
        method: 'get'
    })
}

// 新增通知公告
export function addMessage(data) {
    return request({
        url: '/customer/message/insert',
        method: 'post',
        data: data
    })
}

// 修改通知公告
export function updateMessage(data) {
    return request({
        url: '/customer/message/modify',
        method: 'put',
        data: data
    })
}

// 删除通知公告
export function delMessage(id) {
    return request({
        url: '/customer/message/del/' + id,
        method: 'delete'
    })
}

